/* ----------------------------------------------------------------------
 * File: 		token.h
 * Created by:		Taylor Wood
 * Email:		Tdwood2@asu.edu
 * Student ID:		1202553801
 *
 * Description:
 * This is the header file for token. All methods are defined here and
 * as well as a token structure. 
 * ----------------------------------------------------------------------*/
#ifndef _TOKEN_H_
#define _TOKEN_H_

#include <string>
#include <iostream>
#include <cstdlib>
using namespace std;
// Contains the name of the token, the value, and the line
// number it is found on, and a pointer to the next token.
struct token {
	string name;
	string word;
	int line;
	token * next;
};

// Prototypes
int createList(token *);
int addToList(token *);
void printList(void);
token * getCurrToken(void);
int incrToken(void);
void setHead(void);

#endif
